package com.asurplus.timer.job;

import com.asurplus.weixin.utils.WeiXinUtils;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @ClassName TestJob
 * 测试定时任务
 * @Author Lizhou
 * @Date 2020-07-21 10:58:58
 **/
@Slf4j
public class WeiXinAccessTokenJob implements Job {

    @Autowired
    private WeiXinUtils weiXinUtils;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        String accessToken = weiXinUtils.getAccessToken();
        log.info("微信定时获取access_token任务启动：{}", accessToken);
    }
}
